package hu.myai.scenarios;

import hu.myai.api.scenarios.AbstractSceanario;
import hu.myai.model.TradeVO;
import hu.myai.model.TriggerVO;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * Propose of a strategy: listening on trigger events (buy, sell, cover) assign
 * volume to it and it makes trades depend on the programmed scenario.
 * 
 * @author bozbalint
 * 
 */
public class DummyScenario extends AbstractSceanario {

	/**
	 * The object used when logging debug,errors,warnings and info.
	 * */
	private final Logger log = LoggerFactory.getLogger(this.getClass());

	public DummyScenario(String name) {
		super(name);
		// TODO Auto-generated constructor stub
	}

	@Override
	protected void startCalculation(String name, TriggerVO value) {

		TradeVO tradeVO = new TradeVO();
		tradeVO.setEP(value.getTick().getPivot());
		tradeVO.setTradeType(0);
		tradeVO.setRisk(5);

		log.info("TradeVO: " + tradeVO);
	}
}
